Optimal. Leaf size=156 \[ -\frac {a^3 A}{4 x^4}-\frac {a^2 (a B+3 A b)}{3 x^3}-\frac {3 a \left (A \left (a c+b^2\right )+a b B\right )}{2 x^2}+3 c x \left (a B c+A b c+b^2 B\right )+\log (x) \left (3 a A c^2+6 a b B c+3 A b^2 c+b^3 B\right )-\frac {A \left (6 a b c+b^3\right )+3 a B \left (a c+b^2\right )}{x}+\frac {1}{2} c^2 x^2 (A c+3 b B)+\frac {1}{3} B c^3 x^3 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 156, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {765} \[ -\frac {a^2 (a B+3 A b)}{3 x^3}-\frac {a^3 A}{4 x^4}+\log (x) \left (3 a A c^2+6 a b B c+3 A b^2 c+b^3 B\right )-\frac {3 a \left (A \left (a c+b^2\right )+a b B\right )}{2 x^2}+3 c x \left (a B c+A b c+b^2 B\right )-\frac {A \left (6 a b c+b^3\right )+3 a B \left (a c+b^2\right )}{x}+\frac {1}{2} c^2 x^2 (A c+3 b B)+\frac {1}{3} B c^3 x^3 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 765
Rubi steps
\begin {align*} \int \frac {(A+B x) \left (a+b x+c x^2\right )^3}{x^5} \, dx &=\int \left (3 c \left (b^2 B+A b c+a B c\right )+\frac {a^3 A}{x^5}+\frac {a^2 (3 A b+a B)}{x^4}+\frac {3 a \left (a b B+A \left (b^2+a c\right )\right )}{x^3}+\frac {3 a B \left (b^2+a c\right )+A \left (b^3+6 a b c\right )}{x^2}+\frac {b^3 B+3 A b^2 c+6 a b B c+3 a A c^2}{x}+c^2 (3 b B+A c) x+B c^3 x^2\right ) \, dx\\ &=-\frac {a^3 A}{4 x^4}-\frac {a^2 (3 A b+a B)}{3 x^3}-\frac {3 a \left (a b B+A \left (b^2+a c\right )\right )}{2 x^2}-\frac {3 a B \left (b^2+a c\right )+A \left (b^3+6 a b c\right )}{x}+3 c \left (b^2 B+A b c+a B c\right ) x+\frac {1}{2} c^2 (3 b B+A c) x^2+\frac {1}{3} B c^3 x^3+\left (b^3 B+3 A b^2 c+6 a b B c+3 a A c^2\right ) \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 154, normalized size = 0.99 \[ \frac {-3 a^3 A-4 a^2 x (a B+3 A b)+36 c x^5 \left (a B c+A b c+b^2 B\right )-18 a x^2 \left (A \left (a c+b^2\right )+a b B\right )+12 x^4 \log (x) \left (3 a A c^2+6 a b B c+3 A b^2 c+b^3 B\right )-12 x^3 \left (A \left (6 a b c+b^3\right )+3 a B \left (a c+b^2\right )\right )+6 c^2 x^6 (A c+3 b B)+4 B c^3 x^7}{12 x^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.01, size = 168, normalized size = 1.08 \[ \frac {4 \, B c^{3} x^{7} + 6 \, {\left (3 \, B b c^{2} + A c^{3}\right )} x^{6} + 36 \, {\left (B b^{2} c + {\left (B a + A b\right )} c^{2}\right )} x^{5} + 12 \, {\left (B b^{3} + 3 \, A a c^{2} + 3 \, {\left (2 \, B a b + A b^{2}\right )} c\right )} x^{4} \log \relax (x) - 3 \, A a^{3} - 12 \, {\left (3 \, B a b^{2} + A b^{3} + 3 \, {\left (B a^{2} + 2 \, A a b\right )} c\right )} x^{3} - 18 \, {\left (B a^{2} b + A a b^{2} + A a^{2} c\right )} x^{2} - 4 \, {\left (B a^{3} + 3 \, A a^{2} b\right )} x}{12 \, x^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 166, normalized size = 1.06 \[ \frac {1}{3} \, B c^{3} x^{3} + \frac {3}{2} \, B b c^{2} x^{2} + \frac {1}{2} \, A c^{3} x^{2} + 3 \, B b^{2} c x + 3 \, B a c^{2} x + 3 \, A b c^{2} x + {\left (B b^{3} + 6 \, B a b c + 3 \, A b^{2} c + 3 \, A a c^{2}\right )} \log \left ({\left | x \right |}\right ) - \frac {3 \, A a^{3} + 12 \, {\left (3 \, B a b^{2} + A b^{3} + 3 \, B a^{2} c + 6 \, A a b c\right )} x^{3} + 18 \, {\left (B a^{2} b + A a b^{2} + A a^{2} c\right )} x^{2} + 4 \, {\left (B a^{3} + 3 \, A a^{2} b\right )} x}{12 \, x^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.07, size = 183, normalized size = 1.17 \[ \frac {B \,c^{3} x^{3}}{3}+\frac {A \,c^{3} x^{2}}{2}+\frac {3 B b \,c^{2} x^{2}}{2}+3 A a \,c^{2} \ln \relax (x )+3 A \,b^{2} c \ln \relax (x )+3 A b \,c^{2} x +6 B a b c \ln \relax (x )+3 B a \,c^{2} x +B \,b^{3} \ln \relax (x )+3 B \,b^{2} c x -\frac {6 A a b c}{x}-\frac {A \,b^{3}}{x}-\frac {3 B \,a^{2} c}{x}-\frac {3 B a \,b^{2}}{x}-\frac {3 A \,a^{2} c}{2 x^{2}}-\frac {3 A a \,b^{2}}{2 x^{2}}-\frac {3 B \,a^{2} b}{2 x^{2}}-\frac {A \,a^{2} b}{x^{3}}-\frac {B \,a^{3}}{3 x^{3}}-\frac {A \,a^{3}}{4 x^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.49, size = 163, normalized size = 1.04 \[ \frac {1}{3} \, B c^{3} x^{3} + \frac {1}{2} \, {\left (3 \, B b c^{2} + A c^{3}\right )} x^{2} + 3 \, {\left (B b^{2} c + {\left (B a + A b\right )} c^{2}\right )} x + {\left (B b^{3} + 3 \, A a c^{2} + 3 \, {\left (2 \, B a b + A b^{2}\right )} c\right )} \log \relax (x) - \frac {3 \, A a^{3} + 12 \, {\left (3 \, B a b^{2} + A b^{3} + 3 \, {\left (B a^{2} + 2 \, A a b\right )} c\right )} x^{3} + 18 \, {\left (B a^{2} b + A a b^{2} + A a^{2} c\right )} x^{2} + 4 \, {\left (B a^{3} + 3 \, A a^{2} b\right )} x}{12 \, x^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.17, size = 164, normalized size = 1.05 \[ \ln \relax (x)\,\left (B\,b^3+3\,A\,b^2\,c+6\,B\,a\,b\,c+3\,A\,a\,c^2\right )-\frac {x^3\,\left (3\,B\,c\,a^2+3\,B\,a\,b^2+6\,A\,c\,a\,b+A\,b^3\right )+x\,\left (\frac {B\,a^3}{3}+A\,b\,a^2\right )+\frac {A\,a^3}{4}+x^2\,\left (\frac {3\,B\,a^2\,b}{2}+\frac {3\,A\,c\,a^2}{2}+\frac {3\,A\,a\,b^2}{2}\right )}{x^4}+x\,\left (3\,B\,b^2\,c+3\,A\,b\,c^2+3\,B\,a\,c^2\right )+x^2\,\left (\frac {A\,c^3}{2}+\frac {3\,B\,b\,c^2}{2}\right )+\frac {B\,c^3\,x^3}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 4.21, size = 189, normalized size = 1.21 \[ \frac {B c^{3} x^{3}}{3} + x^{2} \left (\frac {A c^{3}}{2} + \frac {3 B b c^{2}}{2}\right ) + x \left (3 A b c^{2} + 3 B a c^{2} + 3 B b^{2} c\right ) + \left (3 A a c^{2} + 3 A b^{2} c + 6 B a b c + B b^{3}\right ) \log {\relax (x )} + \frac {- 3 A a^{3} + x^{3} \left (- 72 A a b c - 12 A b^{3} - 36 B a^{2} c - 36 B a b^{2}\right ) + x^{2} \left (- 18 A a^{2} c - 18 A a b^{2} - 18 B a^{2} b\right ) + x \left (- 12 A a^{2} b - 4 B a^{3}\right )}{12 x^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________